import re 
pattern=r'[?|&]'#定义分隔符
url='http://localhost:8080/myweb/index.aspx?username=“mr”&pwd=“woshi”'
result=re.split(pattern,url)#分割字符串print(result)
